---
artifact: {{ .ModuleName }}/build-status-artifact
from: node:14-alpine3.12@sha256:426384fb33a11d27dbbdc545f39bb8daacd3e7db7c60b52cd6bc0597e0045b8d
git:
- add: /{{ $.ModulePath }}modules/500-{{ $.ModuleName }}/images/{{ $.ImageName }}/
  to: /src
  stageDependencies:
    install:
    - '**/*'
shell:
  install:
  - apk add --no-cache python3 vips make build-base
  - cd /src
  - npm ci
  - npm run build
  - chown -R 64535:64535 /src/dist
---
image: {{ .ModuleName }}/{{ .ImageName }}
fromImage: common/nginx-static
import:
- artifact: {{ .ModuleName }}/build-status-artifact
  add: /src/dist
  to: /opt/nginx-static/html
  before: setup
docker:
  ENTRYPOINT: ["/opt/nginx-static/sbin/nginx", "-g", "daemon off;"]
